﻿@model IEnumerable<MTQ.Model.Base_Menu>
<ul class="page-sidebar-menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
    <!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
    <li class="sidebar-toggler-wrapper">
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        <div class="sidebar-toggler">
        </div>
        <!-- END SIDEBAR TOGGLER BUTTON -->
    </li>
    <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->

   @* <li class="start ">
        <a href="javascript:;">
            <i class="icon-home"></i>
            <span class="title">Home</span>
          
        </a>

    </li>*@




    @{
        foreach (var rbac_menu in Model)
        {
            if (rbac_menu.Items.Count > 0)
            {
        <li>

            <a href="javascript:void(0);">
                <i  class="fa @rbac_menu.Menu_Img" ></i>
                <span class="title">@rbac_menu.Menu_Name </span>
                <span class="arrow "></span>

            </a>
            <ul class="sub-menu">
                @foreach (var sub in rbac_menu.Items)
                {
                    <li>
                        <a  class="ajaxify"    href="@sub.Menu_NavigateUrl">
                            @sub.Menu_Name
                            @if (sub.Items.Count > 0)
                            {
                                <span class="arrow"></span>
                            }
                        </a>

                    </li>
                }

            </ul>
        </li>
            }
            else
            {
        <li>
            <a class="ajaxify" target="iframepage" href="@rbac_menu.Menu_NavigateUrl">
                <i class="fa @rbac_menu.Menu_Img"></i>
                <span class="title">@rbac_menu.Menu_Name</span>
            </a>
        </li>
            }

        }
    }

</ul>
